package com.chen10.cattle.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

// model/vo/TemperatureHistoryVO.java
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TemperatureHistoryVO {

    private String cattleId;
    private BigDecimal temperature;
    private Date recordedAt;

    // 可选：添加时间格式化
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getRecordedAt() {
        return recordedAt;
    }
}
